<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
*/

/**
 * fwi Application Info
 *
 * @author trunghpb
 */
class _fwia {
    private static $isRuned = array();
    private static $appName;
    private static $appPath;
    private static $baseURL;

    public static function setName($name) {
        if (!self::$isRuned[__FUNCTION__]){
            self::$appName = $name;
            self::$isRuned[__FUNCTION__] = true;
        }else{
            throw new fwiException(101);    // system error, not allow call system function.
        }
    }

    public static function setPath($path) {
         if (!self::$isRuned[__FUNCTION__]){
            self::$appPath = $path;
            self::$isRuned[__FUNCTION__] = true;
        }else{
            throw new fwiException(101);    // system error, not allow call system function.
        }
    }

    public static function setBaseURL($path) {
        if (!self::$isRuned[__FUNCTION__]){
            self::$baseURL= $path;
            self::$isRuned[__FUNCTION__] = true;
        }else{
            throw new fwiException(101);    // system error, not allow call system function.
        }
    }

    public static function AppName(){
        return self::$appName;
    }

    public static function AppPath(){
        return self::$appPath.DSR;
    }

    public static function BaseURL(){
        return self::$baseURL;
    }

}
?>
